const action = (type, payload) => ({ type, payload });

export default action;

function delay (time) {
    return new Promise(function (r) {
        setTimeout(r, time);
    });
}

export {
    delay,
    action
};
